package Board;

import java.io.File;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.Vector;

import org.apache.ibatis.session.SqlSession;

import com.oreilly.servlet.MultipartRequest;
import com.oreilly.servlet.multipart.DefaultFileRenamePolicy;

import common.ClampFactory;

public class DataBank {
	private SqlSession session;
	private BoardMyba board;
	// 첨부파일
	int fileSize = 10 * 1024 * 1024;
	/*String uploadPath = "C:\\Users\\jhta\\Documents\\workspace\\svn_Clamp\\WebContent\\homepage\\board\\boardData";*/
	String uploadPath;
	String fileEncoding = "utf-8";

	public String getUploadPath() {
		return uploadPath;
	}

	public void setUploadPath(String uploadPath) {
		this.uploadPath = uploadPath;
	}

	DataBankVo vo;

	public DataBank() {
		try {
			session = ClampFactory.getFactory().openSession();
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}

	
	public void setVo(DataBankVo vo) {
		this.vo = vo;
	}
}
